import request from "@/utils/request";

export const register = (data) => {
  return request({
    method: "post",
    url: "/ums/user/register",
    data: {
      ...data,
    },
    header: {
      "Content-Type": "application/json",
    },
  });
};

export const login = (data) => {
  return request({
    method: "post",
    url: "/ums/user/login",
    data: {
      ...data,
    },
    header: {
      "Content-Type": "application/json",
    },
  });
};
